package two_xia.ex7.Demo03;

public class BorderDecorator extends ComponentDecorator {
    public BorderDecorator(Component component) {
        super(component);
    }


    public void addBorder() {
        System.out.println("添加黑色边框！");
    }

    @Override
    public void show() {
        this.addBorder();
        super.show();
    }
}
